package demo7;

/**
 * @author Huangjin
 * @version 1.0
 * describe:
 * @date 2023/2/28 18:16
 */
public class TrimDemo {
    public static void main(String[] args) {
        String str = "      hello world     ";
        str = str.trim();
        System.out.println(str);
        ///////////////////////
        String str1 = "      hello world     ";
        str1 = str1.trim();
        System.out.println(str1);
    }
}
